<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateQhNoticesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('qh_notices', function (Blueprint $table) {
            $table->id();
            $table->string('title')->comment('标题');
            $table->string('image')->nullable()->comment('图片');
            $table->string('province')->nullable()->comment('省份');
            $table->text('abstract')->comment('摘要');
            $table->text('content')->comment('内容');
            $table->tinyInteger('type')->comment('类型：1:内部公告, 2:考试动态, 3:院校公告');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('qh_notices');
    }
}
